package nl.sweet.testsweet;

/**
 * The interface for the listener for the test suite.
 * @author wessels
 */
public interface TestSweetListener
{
	/**
	 * Set the amount of tests.
	 * @param totalTests Amount of tests.
	 */
	public void setAmountOfTests(int totalTests);

	/**
	 * Set the current test.
	 * @param currentTest The current test number.
	 */
	public void setCurrentTest(int currentTest, Class< ? extends TestSweetTestCase> testClass);

	/**
	 * Pass a new results object to the listener.
	 * @param testSuiteResult The TestSweetResult object.
	 */
	public void addTestSuiteResult(TestSweetResult testSuiteResult);

	/**
	 * Set the total time of the test.
	 * @param totalTime The total time of the tests.
	 */
	public void setTotalTime(double totalTime);
}
